import os

def callback(arg, dirs,files):
    for file in files:
        print os.path.join(dirs,file), repr(arg)

os.path.walk(".", callback, "123456")
